package com.github.od.exception;

/**
 * 基础异常类
 *
 * @author xieweikun
 * @Date 2017/11/15 20:19
 */
public class BaseException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8740962485748308205L;

	/**
	 * 默认异常编码
	 */
	private int status = 200;

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public BaseException() {
		super();
	}

	public BaseException(String message, int status) {
		super(message);
		this.status = status;
	}

	public BaseException(String message) {
		super(message);
	}

	public BaseException(String message, Throwable cause) {
		super(message, cause);
	}

	public BaseException(Throwable cause) {
		super(cause);
	}

	protected BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

}
